package day12;

public class thread5 implements Runnable{
	private int count=0;
	private String name;
	private static Object lock = new Object();
	public thread5(String name){
		this.name = name;
	}
	public void run(){
		synchronized (lock){
			count += 10;
			System.out.println(Thread.currentThread().getName() + ".count=" + count);
		}
	}
}
